package com.tool.rabbitmq.constants;

/**
 * @author : zhaoxuan
 * @date : 2021/9/4 1:01
 * @description : RabbitExchange
 */
public interface RabbitConstant {
    String DEFAULT_DIRECT = "amq.direct";
    String DEFAULT_FANOUT = "amq.fanout";
    String DEFAULT_TOPIC = "amq.topic";
    String DEFAULT_HEADERS = "amq.headers";


    String DELAY_EXCHANGE = "delay-exchange";
    String DEAD_LETTER_EXCHANGE = "dl-exchange";
    String DELAY_MESSAGE_TYPE = "x-delayed-message";
    String CALLBACK_RABBIT_TEMPLATE = "callBackRabbitTemplate";

    /**
     * 死信队列header-key
     */
    String X_DEAD_LETTER_EXCHANGE = "x-dead-letter-exchange";
    String X_DEAD_LETTER_ROUTING_KEY = "x-dead-letter-routing-key";
}
